(navigation image)
Home American Libraries | Canadian Libraries | Universal Library | Community Texts | Project Gutenberg | Children's Library | Biodiversity Heritage Library | Additional Collections
Search: Advanced Search
Anonymous User (login or join us)
Upload
See other formats

Full text of "Arduino"

Hands-Free Mouse 



i 



Make Projects 



build, hack, tweak, share, discover, J 



Hands-Free Mouse 



Written By: David Kerns 



f TOOLS: 



Sewing machine (1) 
recommended but optional 

basic sewing tools (1) 
thread, scissors, pins 



© PARTS: 



Arduino Leonardo (1) 

Micro USB Cabled) 

Accelerometer. Memsic MX2125 (1) 

Small Breadboard (1) 

Jumper Wire (11) 

Elastic band (1) 

Head Sweat Band (1) 

Tape, duct (1) 

Velcro Strip (1) 

Both sides of the velcro required 

Cardboard Rectangle (1) 



SUMMARY 

Make a mouse for your computer that uses only an Arduino, an accelerometer, and your 
head movement to move and click. 



© Make Projects 



www.makeprojects.com 



Page 1 of 5 



Hands-Free Mouse 



Step 1 — Hands-Free Mouse 












The first step is to fabricate the hardware. 

First, sew the 1 .5-inch elastic band to the inside of the headband as in the first picture. The 
elastic band should be perpendicular to the headband. 

Now, put the band on your head with the elastic strip over the top. It is imperative that you 
note where the elastic band intercepts the headband in the back. 

If there is more elastic band than necessary in the back, cut the extra off. Then sew two 
1.5-inch "loop" velcro strips on to the end of the elastic band. 

Finally, sew three 2-inch "hook" velcro pieces onto the headband where the elastic band 
intersects with it (as in the third picture). 



© Make Projects 



www.makeprojects.com 



Page 2 of 5 



Hands-Free Mouse 







Make sure the finished headband looks like the first picture when it is fastened in the back. 
Then start the board assembly. 

First, use gorilla tape to secure the breadboard and the Arduino to the cardboard rectangle 
(they should fit perfectly side by side). 

Wire +5v to the first column on the breadboard (the + column) and the GND pin to the 
second column (- column). 

Wire the two sets of +/- columns together (as in the second picture; the long blue and 
orange wires at the top). 

Place the accelerometer across the gap in the breadboard as in the third picture. You will 
notice that there is a little arrow on the accelerometer. Place the accelerometer such that 
this arrow is pointed away from the long black and orange wires in the Fritzing image. 



© Make Projects 



www.makeprojects.com 



Page 3 of 5 



Hands-Free Mouse 





Artkinol 





1 1 




1 






3V3 5V 


Win 






PttMt 









RST 


Dia 






AREF 


DIE 






Arduino 


Oil 


mu 






EMO 


A&U 






D? 


QBt 






'J 

1 D7 










e 




M 

A1 


CM 


PftV 


■ 
Accel 

A 




PMI f 












A2 £ 

I 

1 
A* s 

AS 


D3 


l'*,VjT 






5 
1 




Di 
DO 


■M 
















GNO 





























*rct?t?*c*Tete' 



• To finish the wiring, start with the right side of the accelerometer, the rectangle side (per 
the diagram). 

• Wire the top pin to +5v, the middle pin to Arduino pin 2, and the bottom pin to GND. 

• On the left side (the circle side), ignore the top pin, wire the middle pin to Arduino pin 3, 
and the bottom pin to GND. 










Now it is time to put the two parts together. 

Tape the cardboard square with the wiring on it to the elastic strip about 1 inch away from 
the headband, as the second picture shows. 

The front is the part that is sewn, and the back is the part that is attached by velcro. 

Note: the headband used in this tutorial is not a sweatband, it is part of a hat (hence the 
velcro part that adjusts its size). 



© Make Projects 



www.makeprojects.com 



Page 4 of 5 



Hands-Free Mouse 





• The last step is to import the code 
into the Arduino, and run the 
program. 

• The code can be found here . 

• Please note the first comment in 
the comments section of the page; 
it has valuable information. 

• Upload this code to your Arduino 
with the Arduino IDE ( download 
link ) using the Micro USB cable. 

• Keeping the cable connected to 
your computer, put the band on 
your head and velcro the elastic 
band in place. 

• Yay. You are all done. Congratz! 



This document was last generated on 201 3-02-1 8 07:29:06 AM. 



© Make Projects 



www.makeprojects.com 



Page 5 of 5